import Cookies from 'js-cookie'

const tokenKey = 'x-xq5-jwt'

const Auth = {
  getToken () {
    return Cookies.get(tokenKey)
  },
  setToken (token) {
    return Cookies.set(tokenKey, token)
  },
  removeToken () {
    return Cookies.remove(tokenKey)
  }
}

export default Auth
